package com.simple.space.config.global;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *     <br/>全局配置
 * </p>
 */
@Component
@ConfigurationProperties(prefix = "global", ignoreUnknownFields = true)
public class GlobalConfig {
    private boolean validationRedis = false;

    private boolean validationDb = false;

    private boolean localCache = false;

    private String imgUploadPath = "";

    public boolean isValidationRedis() {
        return validationRedis;
    }

    public void setValidationRedis(boolean validationRedis) {
        this.validationRedis = validationRedis;
    }

    public boolean isValidationDb() {
        return validationDb;
    }

    public void setValidationDb(boolean validationDb) {
        this.validationDb = validationDb;
    }

    public boolean isLocalCache() {
        return localCache;
    }

    public void setLocalCache(boolean localCache) {
        this.localCache = localCache;
    }

    public String getImgUploadPath() {
        return imgUploadPath;
    }

    public void setImgUploadPath(String imgUploadPath) {
        this.imgUploadPath = imgUploadPath;
    }
}